
<p><b>Syntax:</b> <i>worker_cpu_affinity cpumask [cpumask...] </i>
</p><p><b>Default:</b> <i>none</i>
</p><p>Linux only.
</p><p>With this option you can bind the worker process to a CPU, it calls sched_setaffinity(). 
</p><p>For example,
</p>
<pre class="code"><span class="kw1">worker_processes</span>     <span class="nu0">4</span>;
<span class="kw1">worker_cpu_affinity</span> <span class="nu0">0001</span> <span class="nu0">0010</span> <span class="nu0">0100</span> <span class="nu0">1000</span>;</pre>
<p>Bind each worker process to one CPU only.
</p>
<pre class="code"><span class="kw1">worker_processes</span>     <span class="nu0">2</span>;
<span class="kw1">worker_cpu_affinity</span> <span class="nu0">0101</span> <span class="nu0">1010</span>;</pre>
<p>Bind the first worker to CPU0/CPU2, bind the second worker to CPU1/CPU3. This is suitable for HTT.
</p><p><br />
</p>
<br><i>Module: NginxHttpMainModule</i>